

public class Main {
    public static void main(String[] args) {
        MySinglelist myList = new MySinglelist();
        myList.createList();
        myList.displayList(myList);
       // System.out.println( myList.contains(3));
/*头插法测试
        myList.headInsert(6,4);
        System.out.println( myList.contains(4));
*/
//        myList.lastInsert(1,4);
//        System.out.println(myList.contains(4));
//        myList.displayList(myList);
//        System.out.println("=====");
//        System.out.println(myList.delNode(4));
//        System.out.println(myList.delNode(4));
//        System.out.println("=====");
//        System.out.println(myList.delNode(3));
//        myList.displayList(myList);
        System.out.println("=====");
        myList.lastInsert(6,3);
        myList.displayList(myList);
        System.out.println("=====");
        myList.delNodes(3);
        myList.displayList(myList);
    }
}